package com.zzyl.nursing.mapper.member;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.domain.Reservation;
import com.zzyl.nursing.vo.memberVo.TimeCountVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 预约信息Mapper
 * @author yhy
 * auto
 */

@Mapper
public interface MemberReservationMapper extends BaseMapper<Reservation> {
    int getUserCancelledCount(@Param("id") Long id, @Param("begin") LocalDateTime  begin, @Param("end") LocalDateTime end);

    List<TimeCountVo> getCountByTime(@Param("begin") LocalDateTime begin, @Param("end") LocalDateTime end);
}
